package com.newtype.meeting.client.model;

import java.io.Serializable;

import com.extjs.gxt.ui.client.data.BaseModel;

@SuppressWarnings("serial")
public class Degree extends BaseModel implements Serializable {
	private Long id;
	private Integer degreeID;
	private String caption;
	private String description;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getDegreeID() {
		return degreeID;
	}

	public void setDegreeID(Integer degreeID) {
		this.degreeID = degreeID;
	}

	public String getCaption() {
		return caption;
	}

	public void setCaption(String caption) {
		this.caption = caption;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void updateProperties() {
		set("degreeID", getDegreeID());
		set("caption", getCaption());
		set("description", getDescription());
	}

	public void updateObject() {
		setDegreeID((Integer) get("degreeID"));
		setCaption((String) get("caption"));
		setDescription((String) get("description"));
	}
}
